package com.yf.service;

import com.yf.bean.*;
import com.yf.entity.BreakpointEntity;

import java.util.List;

public interface UserService {
    UserBean login(UserBean user);
    int register(UserBean user);
    boolean logout(UserBean user);
    LogStatisticBean getLogStatistic(Integer  uid);
    int addLogStatistic(List<SolveLogBean> logs);
    int activateUser(Integer uid);
    boolean existUser(Integer nameID);
    boolean existEmail(Integer emailID);
    int addCollect(List<CollectionBean> data);
    List<CollectionBean> selectCollect(Integer uid);
    List<CollectionBean> getCollectBySub(Integer uid, Integer cate);
    int deleteCollect(Integer id);
    int markBlackUser(Long uid);
    Integer getUserPriority(Integer uid);
    Boolean addBreakpoint(BreakpointBean breakpoint);
    List<BreakpointEntity> getUserBreakpoint();
    Boolean resetUserPass(UserBean bean);
    Boolean resetUserName(UserBean bean);
    String getUserReviewList();
    List<HistoryAnswer> getUserHistoryAnswer(Integer uid, Integer subject);
    UserKickLog getUserKickStat(Integer uid);
}
